#ifndef MODEL_HPP
#define MODEL_HPP

#include<iostream>
#include<string>
#include "../rpc.pb.h"


//直接继承我们的 service类，这个类就是我们服务的提供方了（没有默认的构造函数）
//而RpcFunction_stub是调用类，继承自RpcFunction类
class UserSerivce : public RpcProto::RpcFunction
{
public:
    void Login(int id,std::string name,std::string password)
    {
        std::cout << "正在处理登录业务" << std::endl;
        std::cout << "name :" << name << " " << password;
    }

    //
   void Login(::google::protobuf::RpcController* controller,
                       const ::RpcProto::LoginRequest* request,
                       ::RpcProto::LoginResponse* response,
                       ::google::protobuf::Closure* done)
                       {
                             std::cout << "重写服务类的RpcFunction" << std::endl;
                       } 
                    
};





#endif 